package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.SetmealDto;
import com.itheima.pojo.Setmeal;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {
    //分页查询
    public Page<SetmealDto> findPage(Integer page, Integer pageSize,String name);
    //保存套餐信息以及保存菜品信息
    public void saveWithSetmealDish(SetmealDto setmealDto);
    //根据id查询,数据回显
    public SetmealDto findWithSetmealDish(Long id);
    //批量删除
    public void deleteByIds(List<Long> ids);
    //批量启停
    public void statusUpdate(Integer status,Long[] ids);
}
